package com.ruoyi.basic.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 汇率对象 tb_monthly_exchange_rate
 * 
 * @author ruoyi
 * @date 2022-10-26
 */
@TableName("tb_monthly_exchange_rate")
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class TbMonthlyExchangeRate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId
    @TableField("`id`")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 汇率名称 */
    @Excel(name = "汇率名称")
    @TableField("`name`")
    private String name;

    /** 汇率描述 */
    @Excel(name = "汇率描述")
    @TableField("`name_desc`")
    private String nameDesc;

    /** 汇率编码 */
    @Excel(name = "汇率编码")
    @TableField("`code`")
    private String code;

    /** 源头 */
    @Excel(name = "源头")
    @TableField("`from`")
    private String from;

    /** 目标 */
    @Excel(name = "目标")
    @TableField("`to`")
    private String to;

    /** 汇率金额 */
    @Excel(name = "汇率金额")
    @TableField("`price`")
    private BigDecimal price;

    /** 汇率月份 */
    @JsonFormat(pattern = "yyyy-MM")
    @Excel(name = "汇率月份", width = 30, dateFormat = "yyyy-MM")
    @TableField("`rate_date`")
    private Date rateDate;

    @TableField(exist = false)
    private String beginDate;

    @TableField(exist = false)
    private String endDate;

    @TableField(exist = false)
    private String rateMonth;
}

